package com.hoapital.outpbillwork.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hoapital.outpbillwork.module.entity.OutpDoctorPrescItems;
import com.hoapital.outpbillwork.module.entity.OutpDoctorPrescMaster;
import com.hospital.common.core.module.entity.query.CommonTips;
import com.hospital.common.core.module.entity.query.TipsItems;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * <p>
 * ÃÅÕïÒ½Éú´¦·½Ö÷¼ÇÂ¼ Mapper 接口
 * </p>
 *
 * @author lvyao
 * @since 2021-03-31
 */
public interface OutpDoctorPrescMasterMapper extends BaseMapper<OutpDoctorPrescMaster> {

    OutpDoctorPrescMaster getOutpDocPresc(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo);

    boolean updateFlag(@Param("billNo") String billNo);

    boolean updateFlagOt(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo);

    boolean updateVerifyFlag(@Param("visitDate") String visitDate, @Param("visitNo") String visitNo, @Param("verifyFlag") String verifyFlag, @Param("verifyRefuseCause") String verifyRefuseCause);

    String getNewPrescNo();

    Timestamp getSysdate();

    List<OutpDoctorPrescItems> getAllItems(@Param("pid") String pid, @Param("outpId") String outpId);

    CommonTips getGuideText(@Param("orderedByDept") String orderedByDept, @Param("performedBy") String performedBy, @Param("itemCode") String itemCode);

    List<TipsItems> getAllTipsItems(@Param("guideKeyCode") String guideKeyCode, @Param("guideValueCode") String guideValueCode);
}
